// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
function flash_message(message){
    if (!$('flash_message')){
        new Insertion.Top('content','<div id="flash_message" class="flash_message">'+message+'</div>')
    } else {
        $('flash_message').innerHTML = message;
    }
    new Effect.ScrollTo('flash_message', {offset: -10});
	setTimeout("new Effect.Highlight('flash_message');",1000);
}